FlexReport for WinForms
IndexOfKey メソッド


C1.Report.4.6.2 アセンブリ > C1.Report.Util 名前空間 > OrderedDictionary<TKey,TValue> クラス : IndexOfKey メソッド
The key to locate in the OrderedDictionary<TKey,TValue>.
Returns the zero-based index of the specified key in the OrderedDictionary<TKey,TValue>.
シンタックス
'宣言
 
Public Function IndexOfKey( _
   ByVal key As TKey _
) As System.Integer
'使用法
 
Dim instance As OrderedDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As System.Integer
 
value = instance.IndexOfKey(key)
public System.int IndexOfKey( 
   TKey key
)

パラメータ

key
The key to locate in the OrderedDictionary<TKey,TValue>.

戻り値の型

The zero-based index of key, if key is found in the OrderedDictionary<TKey,TValue>; otherwise, -1.
解説
This method performs a linear search; therefore it has a cost of O(n) at worst.
参照

参照

OrderedDictionary<TKey,TValue> クラス
OrderedDictionary<TKey,TValue> メンバ